package com.example.ziru.controller;

import com.example.ziru.entity.ConsultSee;
import com.example.ziru.service.ConsultSeeService;
import com.example.ziru.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/consultSee")
@CrossOrigin
public class ConsultSeeController {
    @Autowired
    private ConsultSeeService consultSeeService;

    @RequestMapping("/addConsult")
    @ResponseBody
    public Object addConsult(Integer roomId,String seeTime,String seePhone){
        return consultSeeService.addConsult(roomId,seeTime,seePhone);
    }

}
